<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index(){


		$appid 	= "wx8758a908411efe64";
		$secret = "8b135de2ae0828a760c4887619d56ad4";

		$url = 'https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid='.$appid .'&secret='.$secret;
		$json= file_get_contents($url);



		$data = json_decode($json);
		
		var_dump($data['access_token']);
    }

    public function index1(){
    	var_dump(getAccessToken());
    }
	
	public function index2(){
		var_dump(getAccessToken2());
	}

    public function test(){
    	phpinfo();
    }

}